Name:		emacs
Version:	28.1
Release:	1%{?dist}
Summary:	The extensible, customizable, self-documenting real-time display editor

License:	GPLv3+
URL:		https://www.gnu.org/software/emacs/emacs.html
Source0:	https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz

BuildRequires:	gpm-devel ncurses-devel gtk3-devel cairo-devel harfbuzz-devel libXpm-devel giflib-devel librsvg2-devel libotf-devel gnutls-devel libjpeg-turbo-devel libtiff-devel

%description
The extensible, customizable, self-documenting real-time display editor.

%prep
%setup -q


%build
%configure \
    --with-cairo \
    --with-harfbuzz \
    --with-modules \
    --with-wide-int \
    --with-x-toolkit=gtk3 \
    --with-xft

make %{?_smp_mflags}

%install
%make_install
mv %{buildroot}/%{_bindir}/ctags %{buildroot}/%{_bindir}/ctags.emacs
mv %{buildroot}/%{_mandir}/man1/ctags.1.gz %{buildroot}/%{_mandir}/man1/ctags.emacs.1.gz 
rm -f %{buildroot}/%{_infodir}/dir %{buildroot}/%{_infodir}/info.info*

%files
/usr/bin/emacs*
/usr/bin/ctags.emacs
/usr/bin/etags
/usr/bin/ebrowse
/usr/share/emacs
/usr/share/metainfo/emacs.metainfo.xml
/usr/share/info/*.info.*
/usr/share/man/man1/*.1.*
/usr/share/applications/*.desktop
/usr/share/icons/hicolor/48x48/apps/emacs.png
/usr/share/icons/hicolor/32x32/apps/emacs.png
/usr/share/icons/hicolor/128x128/apps/emacs.png
/usr/share/icons/hicolor/16x16/apps/emacs.png
/usr/share/icons/hicolor/scalable/mimetypes/emacs-document.svg
/usr/share/icons/hicolor/scalable/mimetypes/emacs-document23.svg
/usr/share/icons/hicolor/scalable/apps/emacs.svg
/usr/share/icons/hicolor/scalable/apps/emacs.ico
/usr/share/icons/hicolor/24x24/apps/emacs.png
/usr/include/emacs-module.h
%{_libdir}/systemd/user/emacs.service
/usr/libexec/emacs

%changelog

